/* 基础样式延续 */
body {
    font-family: "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
    padding: 30px 0;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 25px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.07);
}

/* 页面标题 */
h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    font-weight: 600;
}

/* 搜索表单区域 */
#searchForm {
    padding: 15px 0;
    border-bottom: 1px solid #f1f1f1; /* 与表格区域分隔 */
    margin-bottom: 20px;
}

/* 表单输入框样式 */
.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 13px;
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: separate; /* 分离边框，配合圆角 */
    border-spacing: 0;
    margin-bottom: 20px;
}

.table-bordered {
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    overflow: hidden; /* 裁剪圆角外边框 */
}

.table th, .table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e1e1e1;
}

.table th {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 2px solid #e1e1e1;
}

/* 交替行背景色，增强可读性 */
.table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* 行悬停效果 */
.table tbody tr:hover {
    background-color: #f1f7fd;
    transition: background-color 0.3s ease;
}

/* 无数据提示 */
.text-center {
    text-align: center;
    padding: 30px 0 !important; /* 增加上下内边距，突出提示 */
    color: #777;
}

/* 分页控件 */
.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.page-item {
    margin: 0 3px;
}

.page-link {
    display: block;
    padding: 8px 14px;
    color: #3498db;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-item.active .page-link {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.page-item.disabled .page-link {
    color: #999;
    cursor: not-allowed;
    background-color: #f5f5f5;
    border-color: #ddd;
}

.page-link:hover {
    background-color: #f1f7fd;
    border-color: #3498db;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin: 0 10px;
    }

    .row {
        flex-direction: column;
        gap: 10px; /* 垂直排列时的间距 */
    }

    .col-md-3, .col-md-2 {
        width: 100%;
    }

    .btn {
        width: 100%;
        margin: 5px 0 !important;
    }

    /* 小屏幕表格横向滚动 */
    .table-responsive {
        overflow-x: auto;
    }

    .table th, .table td {
        padding: 8px 10px;
        font-size: 13px;
    }
}